import request from '@/utils/request'

const prefix = "/api/feedback"

/**
 *  新增
 */
export function feedbackInsert(data) {
	return request({
		url: prefix + `/insert`,
		method: 'post',
		data
	})
}

/**
 *  修改
 */
export function feedbackUpdate (data) {
	return request({
		url: prefix + `/update`,
		method: 'post',
		data
	})
}
// 流转
export function feedbackTransfer (data) {
	return request({
		url: prefix + `/transfer`,
		method: 'post',
		data
	})
}

// 流转
export function feedbackBack (data) {
	return request({
		url: prefix + `/back`,
		method: 'post',
		data
	})
}


// 受理
export function feedbackAccept (data) {
	return request({
		url: prefix + `/acceptance`,
		method: 'post',
		data
	})
}
// 办结
export function feedbackOver(data) {
	return request({
		url: prefix + `/over`,
		method: 'post',
		data
	})
}





/**
 *  列表
 */
export function feedbackList (data) {
	return request({
		url: prefix + `/list`,
		method: 'post',
		data
	})
}

/**
 *  详情
 */
export function feedbackDetails (id) {
	return request({
		url: prefix + `/details/${id}`,
		method: 'get',
	})
}

/**
 *  删除
 */
export function feedbackDelete (id) {
	return request({
		url: prefix + `/delete/${id}`,
		method: 'get',
	})
}








